var AreaService = function () {
    this.users = {};
};

AreaService.prototype.setUser = function(user){
    this.users[user.uid] = user;
};

AreaService.prototype.getUser = function(uid) {
    return this.users[uid];
};

AreaService.prototype.removeUser = function(uid) {
    var user = this.users[uid];

    if (user) {
        delete this.users[uid];
    }
};

AreaService.prototype.getUserList = function() {
    return this.users;
};

module.exports = AreaService;
